package com.canyou.activiti.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 流程定义上传部署传输模型
 *
 * @author fy
 * @date 2021/3/5 14:01
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "ProcessDefinitionDeployDTO", description = "流程定义上传部署传输模型")
public class ProcessDefinitionDeployDTO {

    @ApiModelProperty(value = "流程定义名称", required = true)
    @NotBlank(message = "流程定义名称不能为空")
    private String processDefinitionName;

    @ApiModelProperty(value = "部署文件id", required = true)
    @NotNull(message = "部署文件id不能为空")
    private Long mediaId;

}
